import request from '@/utils/request'

// 查询债权信息列表
export function listDebtInfo(query) {
  return request({
    url: '/crm/debtInfo/list',
    method: 'get',
    params: query
  })
}

// 查询债权信息详细
export function getDebtInfo(id) {
  return request({
    url: '/crm/debtInfo/' + id,
    method: 'get'
  })
}

// 新增债权信息
export function addDebtInfo(data) {
  return request({
    url: '/crm/debtInfo',
    method: 'post',
    data: data
  })
}

// 修改债权信息
export function updateDebtInfo(data) {
  return request({
    url: '/crm/debtInfo',
    method: 'put',
    data: data
  })
}

// 删除债权信息
export function delDebtInfo(id) {
  return request({
    url: '/crm/debtInfo/' + id,
    method: 'delete'
  })
}
